<?php

namespace app\admin\controller;

use think\Controller;

class Base extends Controller
{
    //基础控制器
    public function _initialize()
    {
        if (!session('?login.id')){
            $this ->redirect('admin/index/login');
        } else {
            if (session('login.time') < time()){
                session(null);
                $this -> redirect('admin/index/login');
            }
        }
    }
}
